<template>
	<view class="customer">
		<image style="width:184rpx;height:184rpx;" src="/static/image/05_7big.png"></image>
		<view style="font-size: 30rpx;color: #000000;margin:24rpx 0 20rpx;">客服电话</view>
		<view style="font-size: 38rpx;color: #2089FF;">{{phone}}</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				phone:''
			};
		},
		onLoad(e) {
			console.log(e);
			let decodedArr = decodeURIComponent(e.scene);
			// console.log(decodedArr);
			let parts = decodedArr.split(','); // 将字符串按逗号分割成数组
			
			// 创建一个对象并将数组中的值存储在对象的属性中
			let obj = {
			    date: parts[0],
			    value: parts[1]
			};
			
			console.log(obj);
			
			this.$httpapi('selectphone', 'POST',{}).then(res => {
				this.phone = res.data
			})
		}
	}
</script>

<style lang="scss">
.customer{
	padding:100rpx 0 0;
	text-align: center;
	font-weight: bold;
}
</style>
